#ifndef EYERWANDARTIST_EWAUITRACKBODYVIDEO_HPP
#define EYERWANDARTIST_EWAUITRACKBODYVIDEO_HPP

#include "EWAUITrackBody.hpp"
#include "EWAPrjFragmentFragmentResourse.hpp"

namespace Eyer
{
    class EWAUITrackBodyVideo : public EWAUITrackBody
    {
    public:
        EWAUITrackBodyVideo(EyerSmartPtr<EWAUITimelineContext> _timelineCtx, EWAUILayoutParams _width, EWAUILayoutParams _height);
        ~EWAUITrackBodyVideo();

        virtual int OnDraw() override;

        int OnDrawFragment();

        virtual bool OnMousePressEvent     (const Vec2I & pos) override;
        virtual bool OnMouseReleaseEvent   (const Vec2I & pos) override;
        virtual bool OnMouseMoveEvent      (const Vec2I & pos) override;

        virtual EWAPrjTrackType GetTrackType() override;

        EyerSmartPtr<EWAPrjFragmentFragmentResourse> FindDragingFragment();
    };
}

#endif //EYERWANDARTIST_EWAUITRACKBODYVIDEO_HPP
